package com.mayflygeek.mayflyask.framework.webmvc.fixture;

/**
 * 
 * @author 虫虫
 * @team 蜉蝣极客
 * @link www.mayflygeek.com
 * @Emial chongchong@mayflygeek.com
 *
 */
public abstract class AbstractFixture implements Fixture {

	@Override
	public String name() {
		return this.getClass().getSimpleName();
	}

	@Override
	public boolean shouldInit() {
		return false;
	}

	@Override
	public void init() {
		throw new UnsupportedOperationException("不支持此操作");
	}

	@Override
	public void clear() {
		throw new UnsupportedOperationException("不支持此操作");
	}

	@Override
	public void drop() {
		throw new UnsupportedOperationException("不支持此操作");

	}

	@Override
	public int order() {
		return 1;
	}

	@Override
	public String toString() {
		return name();
	}

}
